package com.wjh.kt_wechat.Utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Wang_Junhong
 * 2022/7/17
 * 文件描述：
 */

@Component
public class ConstantPropertiesUtils  implements InitializingBean {

    @Value("${wechat.mpAppId}")
    private String appid;

    @Value("${wechat.mpAppSecret}")
    private String appsecret;

    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;


    @Override
    public void afterPropertiesSet() throws Exception {

        ACCESS_KEY_ID=appid;
        ACCESS_KEY_SECRET=appsecret;

    }
}
